fd68bf190ebf0759e4df847c62fcff2cb0543b92,app/src/main/java/free/rm/skytube/gui/businessobjects/VideoGridAdapter.java,VideoGridAdapter,onBindViewHolder,#GridViewHolder#number#,152
Before Change
// if it reached the bottom of the list, then try to get the next page of videos
if (position >= getItemCount() - 1) {
Log.w(TAG, "BOTTOM REACHED!!!");
new GetYouTubeVideosTask(getYouTubeVideos, this, progressBar).executeInParallel();
}
}
After Change
// if it reached the bottom of the list, then try to get the next page of videos
if (position >= getItemCount() - 1) {
Log.w(TAG, "BOTTOM REACHED!!!");
if(getYouTubeVideos != null)
new GetYouTubeVideosTask(getYouTubeVideos, this, progressBar).executeInParallel();
}
}